package com.geek.framework.study.event.observer;

import java.util.EventObject;
import java.util.Observable;

/**
 * @Author: ysq
 * @Date: 2021/9/1
 * @Description: 被观察对象
 */
public class EventObservable extends Observable {
  @Override
  public void notifyObservers(Object eventSource) {
    setChanged();
    super.notifyObservers(new EventObject(eventSource));
  }
}
